package org.jeecg.modules.buildingmanagement.vo;

import java.io.Serializable;
import java.util.List;
import org.jeecg.modules.buildingmanagement.entity.BuildingManagement;
import org.jeecg.modules.buildingmanagement.entity.Picture;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 房屋管理
 * @Author: jeecg-boot
 * @Date:   2019-10-09
 * @Version: V1.0
 */
@Data
public class BuildingManagementPage implements Serializable {

	public BuildingManagementPage(){}

	public BuildingManagementPage(BuildingManagement buildingManagement,List<Picture> pictureList) {
		this.address = buildingManagement.getAddress();
		this.butlerService = buildingManagement.getButlerService();
		this.createBy = buildingManagement.getCreateBy();
		this.createTime = buildingManagement.getCreateTime();
		this.everydayShop = buildingManagement.getEverydayShop();
		this.id = buildingManagement.getId();
		this.organizationName = buildingManagement.getOrganizationName();
		this.remake = buildingManagement.getRemake();
		this.roomConfiguration = buildingManagement.getRoomConfiguration();
		this.roomNum = buildingManagement.getRoomNum();
		this.roomRental = buildingManagement.getRoomRental();
		this.roomStatus = buildingManagement.getRoomStatus();
		this.roomType = buildingManagement.getRoomType();
		this.status = buildingManagement.getStatus();
		this.updateBy = buildingManagement.getUpdateBy();
		this.updateTime = buildingManagement.getUpdateTime();
		this.pictureList = pictureList;
	}
	
	/**address*/
  	@Excel(name = "address", width = 15)
	private java.lang.String address;
	/**butlerService*/
  	@Excel(name = "butlerService", width = 15)
	private java.lang.String butlerService;
	/**创建人*/
  	@Excel(name = "创建人", width = 15)
	private java.lang.String createBy;
	/**创建时间*/
  	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date createTime;
	/**everydayShop*/
  	@Excel(name = "everydayShop", width = 15)
	private java.lang.Integer everydayShop;
	/**主键*/
	private java.lang.String id;
	/**所属小区*/
  	@Excel(name = "所属小区", width = 15)
	private java.lang.String organizationName;
	/**备注*/
  	@Excel(name = "备注", width = 15)
	private java.lang.String remake;
	/**房屋配置(0:冰箱,1:热水器,2:空调,3:窗户)*/
  	@Excel(name = "房屋配置(0:冰箱,1:热水器,2:空调,3:窗户)", width = 15)
	private java.lang.String roomConfiguration;
	/**房号*/
  	@Excel(name = "房号", width = 15)
	private java.lang.String roomNum;
	/**租金*/
  	@Excel(name = "租金", width = 15)
	private java.lang.String roomRental;
	/**状态*/
  	@Excel(name = "状态", width = 15)
	private java.lang.String roomStatus;
	/**房型*/
  	@Excel(name = "房型", width = 15)
	private java.lang.String roomType;
	/**删除状态(0,未删除;1,已删除)*/
  	@Excel(name = "删除状态(0,未删除;1,已删除)", width = 15)
	private java.lang.Integer status;
	/**修改人*/
  	@Excel(name = "修改人", width = 15)
	private java.lang.String updateBy;
	/**修改时间*/
  	@Excel(name = "修改时间", width = 15)
	private java.math.BigDecimal updateTime;
	
	@ExcelCollection(name="房屋图片")
	private List<Picture> pictureList;
	
}
